﻿using System.Data.Entity;
using ShSoft.Infrastructure.RepositoryBase;
using WarehouseSystem.Domain.Mediators;

namespace WarehouseSystem.Repository.Base
{
    /// <summary>
    /// 数据初始化器实现
    /// </summary>
    public class DataInitializer : IDataInitializer
    {
        #region 示例
        //如无仓储需创建库时 需要初始化 DbContext
        //private readonly DbContext _dbSession;

        //public DataInitializer()
        //{
        //    this._dbSession=DbSession.CommandInstance;
        //}
        #endregion

        #region # 字段及依赖注入构造器

        /// <summary>
        /// 仓储中介者
        /// </summary>
        private readonly RepositoryMediator _repMediator;

        /// <summary>
        /// 依赖注入构造器
        /// </summary>
        /// <param name="repMediator">仓储中介者</param>
        public DataInitializer(RepositoryMediator repMediator)
        {
            this._repMediator = repMediator;
        }

        #endregion

        /// <summary>
        /// 初始化基础数据
        /// </summary>
        public void Initialize()
        {

        }
    }
}
